package com.le123.ysdq;

import android.content.Context;
import android.content.Intent;
import android.test.ActivityInstrumentationTestCase2;
import android.util.Log;

import com.elinkway.infinitemovies.ui.activity.NewMainActivity;

/**
 * Author: liuxiaojiang(liuxiaojiang@lvideo.com)
 * Date: 2016-09-18
 * Time: 17:34
 * Description: FIXME
 */
public class TestActivity extends ActivityInstrumentationTestCase2<NewMainActivity> {
    private Context ctx;

    public TestActivity() {
        super(NewMainActivity.class);
    }

    @Override
    protected void setUp() throws Exception {
        super.setUp();
        ctx = getActivity().getApplicationContext();
    }

    public void testStart() {
        Intent intent = new Intent(ctx, NewMainActivity.class);
        intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        ctx.startActivity(intent);
        Log.i("TestActivity", "................startActivity............................");
    }
}
